home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / file-tra / fsp-2.7 / fsp-2 / fsp / include / my-string.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-27  |  917 b   |  36 lines

  1. #ifndef _FSP_MY_STRING_H_
  2. #define _FSP_MY_STRING_H_
  3.  
  4. #if defined(STRING_H_BOGUS) && defined(STDC_HEADERS)
  5. extern void     bzero(char *, int);
  6. extern void    *memset(void *, int, size_t);
  7. extern char    *strcpy(char *, const char *);
  8. extern char    *strncpy(char *, const char *, size_t);
  9. extern char    *strcat(char *, const char *);
  10. extern int      strcmp(const char *, const char *);
  11. extern int      strncmp(const char *, const char *, size_t);
  12. extern char    *strchr(const char *, int);
  13. extern char    *strerror(int);
  14. #else
  15.  
  16. #if STDC_HEADERS || HAVE_STRING_H
  17. #include <string.h>
  18. /* An ANSI string.h and pre-ANSI memory.h might conflict.  */
  19. #if !STDC_HEADERS && HAVE_MEMORY_H
  20. #include <memory.h>
  21. #endif /* not STDC_HEADERS and HAVE_MEMORY_H */
  22.  
  23. #endif
  24.  
  25. #ifdef HAVE_STRINGS_H
  26. #include <strings.h>
  27. #endif
  28.  
  29. #endif
  30.  
  31. #ifdef NEED_BCOPY
  32. #define bcopy(s, d, n) memcpy((d), (s), (n))
  33. #endif
  34.  
  35. #endif /* _FSP_MY_STRING_H_ */
  36.